# Copyright (c) 2007-2021 Vincent ROGIER <vince.rogier@ocilib.net>
#  
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without 
# modifications, as long as this notice is preserved.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AM_CPPFLAGS= @ORACLE_INCLUDES@ -I$(top_srcdir)/include

lib_LTLIBRARIES= libocilib.la

libocilib_la_LIBADD= @ORACLE_LIBADD@ 
libocilib_la_SOURCES=   \
    agent.c             \
    array.c             \
    bind.c              \
    callback.c          \
    collection.c        \
    column.c            \
    connection.c        \
    date.c              \
    database.c          \
    define.c            \
    dequeue.c           \
    dirpath.c           \
    element.c           \
    enqueue.c           \
    environment.c       \
    error.c             \
    event.c             \
    exception.c         \
    file.c              \
    format.c            \
    handle.c            \
    hash.c              \
    helpers.c           \
    interval.c          \
    iterator.c          \
    list.c              \
    lob.c               \
    long.c              \
    memory.c            \
    message.c           \
    mutex.c             \
    number.c            \
    object.c            \
    ocilib.c            \
    pool.c              \
    queue.c             \
    reference.c         \
    resultset.c         \
    statement.c         \
    stringutils.c       \
    subscription.c      \
    thread.c            \
    threadkey.c         \
    timestamp.c         \
    transaction.c       \
    typeinfo.c

libocilib_la_CFLAGS= @OCILIB_EXTRA_FLAGS@ -D@OCILIB_IMPORT@ -D@OCILIB_CHARSET@ @ORACLE_LIBNAME@ 
libocilib_la_LDFLAGS= @OCILIB_LD_FLAG@  -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)


ocilibcsubdir=$(includedir)/ocilibc
ocilibcsub_HEADERS = $(top_srcdir)/include/ocilibc/*.h

ocilibcppsubdir=$(includedir)/ocilibcpp
ocilibcppsub_HEADERS = $(top_srcdir)/include/ocilibcpp/*.hpp

ocilibcppdetailsubdir=$(includedir)/ocilibcpp/detail
ocilibcppdetailsub_HEADERS = $(top_srcdir)/include/ocilibcpp/detail/*.hpp

ocilibcppdetailcoresubdir=$(includedir)/ocilibcpp/detail/core
ocilibcppdetailcoresub_HEADERS = $(top_srcdir)/include/ocilibcpp/detail/core/*.hpp

ocilibcppdetailsupportsubdir=$(includedir)/ocilibcpp/detail/support
ocilibcppdetailsupportsub_HEADERS = $(top_srcdir)/include/ocilibcpp/detail/support/*.hpp

include_HEADERS=                      	    \
    $(top_srcdir)/include/ocilib.h       	\
    $(top_srcdir)/include/ocilib.hpp
   
noinst_HEADERS=     \
    agent.h         \
    array.h         \
    bind.h          \
    callback.h      \
    collection.h    \
    column.h        \
    connection.h    \
    database.h      \
    date.h          \
    define.h        \
    defs.h          \
    dequeue.h       \
    dirpath.h       \
    element.h       \
    enqueue.h       \
    environment.h   \
    error.h         \
    event.h         \
    exception.h     \
    file.h          \
    format.h        \
    handle.h        \
    hash.h          \
    helpers.h       \
    import.h        \
    interval.h      \
    iterator.h      \
    list.h          \
    loader.h        \
    lob.h           \
    long.h          \
    macros.h        \
    memory.h        \
    message.h       \
    mutex.h         \
    number.h        \
    object.h        \
    pool.h          \
    queue.h         \
    reference.h     \
    resultset.h     \
    statement.h     \
    stringutils.h   \
    subscription.h  \
    thread.h        \
    threadkey.h     \
    timestamp.h     \
    transaction.h   \
    typeinfo.h      \
    types.h         \
    oci/types.h     \
    oci/defs.h      \
    oci/api.h 

CLEANFILES = *~ 